package com.hxht.storage.server.pojo;

import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
//@Table(schema="storage")
public class WeekTemplateInfo extends BaseEntity{
	
	/** 计划录像所用的星期计划模板 */
	@OneToMany(mappedBy = "weekTemplate",	fetch = FetchType.EAGER,
			cascade = CascadeType.REMOVE)
	private Set<DayTemplateInfo> weekTemplate;
	
	@OneToMany(mappedBy = "weekTemplate")
	private Set<PlanRecordInfo> planRecordList;
	
	@Column(unique = true, nullable = false)
	private String uuid;
	
	/** 模板名称 */
	@Column(unique = true, nullable = false)
	private String templateName;
	
	/** 标识 该星期模板 是否可以编辑 */
	private Boolean isEditable;

	public Set<PlanRecordInfo> getPlanRecordList() {
		return planRecordList;
	}

	public void setPlanRecordList(Set<PlanRecordInfo> planRecordList) {
		this.planRecordList = planRecordList;
	}

	public Set<DayTemplateInfo> getWeekTemplate() {
		return weekTemplate;
	}

	public void setWeekTemplate(Set<DayTemplateInfo> weekTemplate) {
		this.weekTemplate = weekTemplate;
	}

	public String getTemplateName() {
		return templateName;
	}

	public void setTemplateName(String templateName) {
		this.templateName = templateName;
	}

	public Boolean isEditable() {
		return isEditable;
	}

	public void setIsEditable(Boolean isEditable) {
		this.isEditable = isEditable;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uUID) {
		uuid = uUID;
	}

}
